import { request } from "@/utils";
import { AxiosPromise } from "axios";


export type UserInfoType = {
    birthday:string
    gender: number
    id: string
    mobile: string
    name: string
    photo: string
}
function userInfoApi():AxiosPromise<{data:UserInfoType}>{
    return request({
        url:'/user/profile',
        method:'get',
        
    })
}

export { userInfoApi}